add_definitions(-DTRANSLATION_DOMAIN=\"plasmanetworkmanagement_iodineui\")

set(iodine_SRCS
    iodine.cpp
    iodinewidget.cpp
    iodineauth.cpp
)

ki18n_wrap_ui(iodine_SRCS iodine.ui iodineauth.ui)

add_library(plasmanetworkmanagement_iodineui ${iodine_SRCS})

kcoreaddons_desktop_to_json(plasmanetworkmanagement_iodineui plasmanetworkmanagement_iodineui.desktop)

target_link_libraries(plasmanetworkmanagement_iodineui
    plasmanm_internal
    plasmanm_editor
    KF5::CoreAddons
    KF5::I18n
    KF5::WidgetsAddons
)

install(TARGETS plasmanetworkmanagement_iodineui  DESTINATION ${KDE_INSTALL_PLUGINDIR})

install(FILES plasmanetworkmanagement_iodineui.desktop  DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
